package com.wanmait.demo.pojo;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

public class RepairOrder implements Serializable {
    private Integer id;

    /**
	* 用户id
	*/
    private Userinfo userinfoId;

    /**
	* 订单状态
	*/
    private OrderState orderStateId;

    /**
	* 维修人员id
	*/
    private Worker workerId;

    /**
	* 开始维修时间
	*/
    private Date serviceTimeStart;

    /**
	* 接单时间
	*/
    private Date receiveTime;

    /**
	* 完成时间
	*/
    private Timestamp serviceTimeFinsh;

    /**
	* 下单时间
	*/
    private Date placeOrderTime;

    /**
	* 联系人电话
	*/
    private String userinfoPhoneNumber;

    /**
	* 联系人姓名
	*/
    private String userinfoName;

    /**
	* 地址id
	*/
    private Address adressId;

    /**
	* 订单描述
	*/
    private String describe;

    /**
	* 状态
	*/
    private Boolean enable;
    private String appointmentTime;//尹山坤加

    public String getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(String appointmentTime) {
        this.appointmentTime = appointmentTime;
    }


    //订单编号
    private String number;


    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }


    //一次订单的RepaieService集合
    private List<RepairService> repairServiceList;

    private static final long serialVersionUID = 1L;

    public List<RepairService> getRepairServiceList() {
        return repairServiceList;
    }

    public void setRepairServiceList(List<RepairService> repairServiceList) {
        this.repairServiceList = repairServiceList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Userinfo getUserinfoId() {
        return userinfoId;
    }

    public void setUserinfoId(Userinfo userinfoId) {
        this.userinfoId = userinfoId;
    }

    public OrderState getOrderStateId() {
        return orderStateId;
    }

    public void setOrderStateId(OrderState orderStateId) {
        this.orderStateId = orderStateId;
    }

    public Worker getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Worker workerId) {
        this.workerId = workerId;
    }

    public Address getAdressId() {
        return adressId;
    }

    public void setAdressId(Address adressId) {
        this.adressId = adressId;
    }

    public Date getServiceTimeStart() {
        return serviceTimeStart;
    }

    public void setServiceTimeStart(Date serviceTimeStart) {
        this.serviceTimeStart = serviceTimeStart;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Date getServiceTimeFinsh() {
        return serviceTimeFinsh;
    }

    public void setServiceTimeFinsh(Timestamp serviceTimeFinsh) {
        this.serviceTimeFinsh = serviceTimeFinsh;
    }

    public Date getPlaceOrderTime() {
        return placeOrderTime;
    }

    public void setPlaceOrderTime(Date placeOrderTime) {
        this.placeOrderTime = placeOrderTime;
    }

    public String getUserinfoPhoneNumber() {
        return userinfoPhoneNumber;
    }

    public void setUserinfoPhoneNumber(String userinfoPhoneNumber) {
        this.userinfoPhoneNumber = userinfoPhoneNumber;
    }

    public String getUserinfoName() {
        return userinfoName;
    }

    public void setUserinfoName(String userinfoName) {
        this.userinfoName = userinfoName;
    }


    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userinfoId=").append(userinfoId);
        sb.append(", orderStateId=").append(orderStateId);
        sb.append(", workerId=").append(workerId);
        sb.append(", serviceTimeStart=").append(serviceTimeStart);
        sb.append(", receiveTime=").append(receiveTime);
        sb.append(", serviceTimeFinsh=").append(serviceTimeFinsh);
        sb.append(", placeOrderTime=").append(placeOrderTime);
        sb.append(", userinfoPhoneNumber=").append(userinfoPhoneNumber);
        sb.append(", userinfoName=").append(userinfoName);
        sb.append(", adressId=").append(adressId);
        sb.append(", describe=").append(describe);
        sb.append(", appointmentTime=").append(appointmentTime);
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}